import config from "@/config"
import http from "@/utils/request"

export default {
  getWatchList: {
    url: `${config.API_URL}/sanyuanli/watchFace/list`,
    name: "表盘信息列表",
    get: async function(params){
      return await http.get(this.url, params)
    }
  },
  getWatchDetail: {
    url: `${config.API_URL}/sanyuanli/watchFace/info/`,
    name: "表盘信息详情",
    get: async function(id){
      return await http.get(this.url + id)
    }
  },
  postWatchData: {
    url: `${config.API_URL}/sanyuanli/watchFace/save`,
    name: "提交修改表盘信息",
    post: async function(data){
      return await http.post(this.url, data)
    }
  },
  getWatchCodeList: {
    url: `${config.API_URL}/sanyuanli/activationCodes/getActivationCodesList`,
    name: "表盘激活码列表",
    get: async function(params){
      return await http.get(this.url, params)
    }
  },
  createWatchCode: {
    url: `${config.API_URL}/sanyuanli/activationCodes/getActivationCodes`,
    name: "生成表盘code",
    get: async function(params){
      return await http.get(this.url, params)
    }
  },
  checkCodeSend: {
    url: `${config.API_URL}/sanyuanli/activationCodes/getVerifyActivationCodes`,
    name: "查询激活码是否发出",
    get: async function(params){
      return await http.get(this.url, params)
    }
  },
  sendCode: {
    url: `${config.API_URL}/sanyuanli/activationCodes/issueActivationCode`,
    name: "发送激活码",
    get: async function(params){
      return await http.get(this.url, params)
    }
  },
  activationWatch: {
    url: `${config.API_URL}/sanyuanli/watchfaceActivation/api/card`,
    name: "模拟激活表盘",
    post: async function(data){
      return await http.post(this.url, data)
    }
  },

}